package com.saturday.common.constants;

public class ResultConsts {

    /**
     * 成功
     */
    public static final Integer SUCCESS_STATUS = 200;

    /**
     * 错误
     */
    public static final Integer ERROR_STATUS = 100;

    /**
     * 警告
     */
    public static final Integer WARN_STATUS = 300;

    /**
     * 禁止
     */
    public static final Integer FORBIDDEN = 403;

    /**
     * 未认证
     */
    public static final Integer NOT_LOGIN = 10001401;

    /**
     * 产品编码
     */
    public static final String PRODUCT_CODE = "Product-Code";

    public enum TYPE_CODE {
        SILENT(1, "静默"),
        PROMPT(2, "提示"),
        WARN(3, "警告"),
        ERROR(4, "错误"),
        SYSTEM(5, "系统消息"),
        PROMPT_MANUAL(6, "提示（手动关闭）"),
        WARN_MANUAL(7, "警告"),
        ERROR_MANUAL(8, "错误（手动关闭）"),
        APP_ERROR_MANUAL(9, "移动端错误（手动关闭）");

        private int key;

        private String value;

        TYPE_CODE(int key, String value) {
            this.key = key;
            this.value = value;
        }

        public int getKey() {
            return key;
        }

        public String getValue() {
            return value;
        }
    }
}
